<?php
/**
 * User: MT
 * Date: 2018/5/23 0023
 */
namespace core\lib;
class log{
    //确定驱动方式
    //写日志
    static $class;
    static function init(){
        $drive = config::get('drive','log');
        $class = '\core\lib\drive\log\\'.$drive;
        self::$class = new $class;
    }
    static function log($message,$file='log'){
        self::$class->log($message,$file='log');
    }
}